package net.jxtz.jxtzos.entity.spider;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(exclude = {"id", "createTime"})
public class SpiderHousingInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private Integer issue;

    @ExcelIgnore
    @TableField("project_id")
    private Integer project_id; // 项目id

    @ExcelProperty("地区")
    @TableField("fullname")
    private String fullname; // 地区

    @ExcelProperty("小区名")
    @TableField("another_name")
    private String anotherName; // 小区

    @ExcelProperty("备案小区名")
    @TableField("beianName")
    private String beianName; // 备案小区名

    @ExcelProperty("楼栋号")
    @TableField("buildingNumber")
    private String buildingNumber; // 楼栋号

    @ExcelProperty("可售总面积")
    @TableField("onSoldArea")
    private String onSoldArea; // 可售总面积

    @ExcelProperty("可售总数量")
    @TableField("onSoldNumber")
    private String onSoldNumber; // 可售总数量

    @ExcelProperty("已售总面积")
    @TableField("outSoldArea")
    private String outSoldArea; // 已售总面积

    @ExcelProperty("已售总数量")
    @TableField("outSoldNumber")
    private String outSoldNumber; // 已售总数

    @ExcelProperty("发证日期")
    @TableField("dateOfIssue")
    private String dateOfIssue; // 发证日期

    @ExcelProperty("预售许可证")
    @TableField("preId")
    private String preId;

    @ExcelIgnore
    @TableField("spiderLogId")
    private Long spiderLogId;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT, value = "createTime")
    private Integer createTime;

}
